import java.util.Scanner;
public class First{
	public static void main(String[] args){
	Scanner sc =new Scanner(System.in);
	System.out.println("Please enter the gender of Xiao Zhang:");
	String a =sc.next();
	System.out.println("Please enter the gender of Xiao Wang:");
	String b =sc.next();
	if (a.equals(b)){
	System.out.println("Can not get married!");
	}else{
	System.out.println("Can get married!");
	}
	}
}